for number in range(100,1000):
    high = number // 100
    mid = number // 10 % 10
    low = number % 10
    if number == high**3 + mid**3 + low**3:
        print(number,end="\t\t")